package com.b2b;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.persistence.Table;

@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
public class testLog {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Test
    public void contextLoads(){
        //由低到高
        logger.trace("trace日志 一");
        logger.debug("debug日志 一");
        logger.info("info日志 一");
        logger.warn("warn日志 一");
        logger.error("error日志 一");
        System.out.println("first try");
    }
}
